﻿#
# Note: the triggers are checked at certain key points in the code, not all the time
# color_key = {
#    color = "black"      # the map color
#    possible = { ... }   # the trigger to enable this color
# }
#

# Example
#dynamic_map_color_swedish_junta = {
#    color = "black"
#	
#	possible = {
#		exists = c:SWE # you /must/ check that a tag exists before doing anything else
#		this = c:SWE
#
#        exists = ig:ig_armed_forces
#        ig:ig_armed_forces = {
#            is_in_government = yes
#        }
#	}
#}

elbian_confederation = {
	color = "elbian_confederation_color"

	possible = {
		exists = c:BOH
		THIS = c:BOH
		country_has_primary_culture = cu:north_german
		any_scope_state = {
			state_region = {
				is_homeland = cu:north_german
			}
		}
	}
}

dynamic_map_color_urrm = {
	color = "red"

	possible = {
		exists = c:HLR
		THIS = c:HLR
		has_law = law_type:law_council_republic
	}
}

dynamic_map_color_spanish_republic = {
	color = hsv360{ 40  100  90 }

	possible = {
		exists = c:SPA
		THIS = c:SPA
		OR = {
			has_law = law_type:law_parliamentary_republic
			has_law = law_type:law_presidential_republic
		}
	}
}

dynamic_map_color_quito_granada = {
	color = { 61 135 120 }

	possible = {
		exists = c:QUI
		THIS = c:QUI
		c:QUI = { 
			has_variable = dvg_martin_is_super_glad
		}
	}
}

dynamic_map_color_zhusha_zhourao = {
	color = { 120 40 40 }

	possible = {
		exists = c:ZHR
		THIS = c:ZHR
		rel:sunni = {
			is_state_religion = c:ZHR
		}
	}
}

commune_dua = {
	color = "paris_red"

	possible = {
		exists = c:DUA
		THIS = c:DUA
		has_law = law_type:law_council_republic
	}
}
